package com.ruoyi.system.service;

import com.ruoyi.system.domain.JobLicenceCreate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 作业许可证办理(JobLicenceCreate)表服务接口
 *
 * @author makejava
 * @since 2022-11-23 09:20:09
 */
public interface JobLicenceCreateService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    JobLicenceCreate queryById(Integer id);

    /**
     * 分页查询
     *
     * @param jobLicenceCreate 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<JobLicenceCreate> queryByPage(JobLicenceCreate jobLicenceCreate, PageRequest pageRequest);

    List<JobLicenceCreate> queryAll(JobLicenceCreate jobLicenceCreate);

    /**
     * 新增数据
     *
     * @param jobLicenceCreate 实例对象
     * @return 实例对象
     */
    JobLicenceCreate insert(JobLicenceCreate jobLicenceCreate);

    /**
     * 修改数据
     *
     * @param jobLicenceCreate 实例对象
     * @return 实例对象
     */
    JobLicenceCreate update(JobLicenceCreate jobLicenceCreate);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
